import type { Role } from './type'
import request from '@/utils/request'

enum API {
  PAGE = '/sysRole/page',
}

export function rolePage(data: Role) {
  return request<any, PageResult<Role[]>>({
    url: API.PAGE,
    method: 'post',
    data,
  })
}
